package course.c4.db.derby.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * .
 * 
 *
 * @author 王东石&lt;wangds2016@163.com&gt;
 */
@Entity
@Table(name = "COMPANY")
public class Company implements Serializable {

	private static final long serialVersionUID = -1322840210675088696L;

	@Id()
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid2")
	@Column(name = "id")
	private String id;

	@Column(name="code")
	private String code;

	@Column(name="name")
	private String name;

	@Column(name="city")
	private String city;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

}
